package main


import (
"fmt"
"time"
)


func fang(){
   for {
    select {  


             case m:= <-c :
              fmt.Println("shenghuo",m)
    }

   }
   

}

var  c = make(chan int ,1)
func main(){

   c<- 1
   go fang()

   time.Sleep(time.Second*100000)

   fmt.Println("ok")
}



